package com.atguigu.com.miaosha.service.impl;

import com.atguigu.com.miaosha.feign.CouponFeign;
import com.atguigu.com.miaosha.feign.R;
import com.atguigu.com.miaosha.service.SecKillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 满超
 * @date 2020/07/03
 **/
@Service
public class SecKillServiceImpl implements SecKillService {

    @Autowired
    CouponFeign couponFeign;

    @Override
    public void uploadSec() {
        //扫描需要参与秒杀的活动
        R info = couponFeign.info(1L);
        System.out.println("秒杀执行中"+info);
    }
}
